﻿@model YodaMaster.Models.ConnectedStudents
@{
    ViewBag.Title = "MyProfile";
}
<p></p>
<p></p>
<h2>Your Profile</h2>

<p></p>

<table border="1"> 
    <thead> 
    <tr> 
           <th> ID </th>
          <th> First Name </th>   
          <th> Last Name</th> 
          <th> Student : Junior / New </th>

    </tr> 
    </thead>         
    <tbody>          
        <tr> 
                    
            <td>@Html.DisplayFor(m=>m.StudentID)</td>
          <td>@Html.DisplayFor(m=>m.FirstMidName)</td>   
          <td>@Html.DisplayFor(m=>m.LastName)</td> 
          <td>@Html.DisplayFor(m=>m.studentType)</td>
                
        </tr> 
         
    </tbody> 
</table>
<p>
</p>
<p></p>
 <table>
        <tr>
            <th>Course ID</th>
            <th> Course Name </th>
            <th>Grade</th>
            
        </tr>
        @foreach (var item in Model.Enrollments)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.CourseID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Course_Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Grade)
                </td>
            </tr>
        }
    </table>